#
# Target names
#

#global 包含平台相关的配置，比如 build/config/Linux
include $(POCO_BASE)/build/rules/global
#源目录和include目录需要在global中定义，编译模块会包含所有模块的include
#SRCDIR   = src
#INCDIR   = include
#去除跨平台的.cpp，跨平台的都.cpp文件都包含"_"
#sources=$(filter-out %_%,$(wildcard $(SRCDIR)/*.cpp))
filterouts=$(foreach f,$(wildcard $(SRCDIR)/*.cpp),$(if $(findstring _,$f),$f%))
sources=$(filter-out $(filterouts),$(wildcard $(SRCDIR)/*.cpp))
#去除.cpp后缀，生成lib时需要
objects = $(patsubst %.cpp,%,$(notdir $(sources)))
#target 用于确定生成目标的名字，见 lib
target         = PocoNet

#obj_compile用于生成相关的.o文件
#lib用于生成相关库,lib会包含obj_compile
include $(POCO_BASE)/build/rules/lib
